'use strict';

const Controller = require('egg').Controller;
const xlsx = require('node-xlsx');

class HomeController extends Controller {
    async index() {
        const { ctx } = this;

        ctx.body = 'not found' + JSON.stringify(ctx.user);
    }

    async test() {
        const { ctx } = this;

        let pageinfo = ctx.helper.getPageInfo();

        console.log(pageinfo);

        ctx.body = 'hi, egg test';

    }
}

module.exports = HomeController;
